package com.neutech.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.neutech.mapper.DeptMapper;
import com.neutech.po.Dept;
import com.neutech.po.User;

@Service
public class DeptService {
	@Autowired
	private DeptMapper deptMapper;
	public List<Dept> findDoctor(){
		
		return deptMapper.findAllDoctorByDept();
	}
	public void updateDoctor(Dept dept){
		System.out.println("aaa");
		deptMapper.updateDoctorById(dept);
	}
	public void addDoctor(Dept dept){
		System.out.println("aaa");
		deptMapper.addDoctorByID(dept);
	}
	public void delDoctor(int id){
		deptMapper.delDoctorByID(id);
	}
}
